<%@ page import="avishay.balderman.dao.*" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 

<%
    if ( request.getParameter("URL") != null ) 
    {
    	LinkHelper.addLink(request);	
    }
%>
 
<head> 
	<title>Add link</title> 
	
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
	
	<link rel="stylesheet" type="text/css" href="../css/style.css" /> 
</head> 
 
<body> 
	<div id="page-wrap"> 
	    Add new Link:
		<div id="contact-area"> 
			<form method="post" action="/jsp/add_link.jsp"> 
				<label for="URL">URL:</label> 
				<input type="text" name="URL" id="URL" /> 
				
				<label for="Description">Description:</label> 
				<input type="text" name="Description" id="Description" /> 
				
				<label for="Type">Type:</label> 
				<select name="Type" id="Type">
					<option value="NEWS" selected="selected">News</option>
					<option value="SHOPPING">Shopping</option>				
					<option value="HEBREW">Hebrew</option>				
					<option value="OTHER">Other</option>				
				</select>
 
				<input type="submit" name="submit" value="Submit" class="submit-button" /> 
			</form> 
			<div style="clear: both;"></div> 
		</div> 
	</div> 
</body> 
</html>